package com.geekcc.springboot.entity;

import cn.hutool.core.annotation.Alias;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import java.io.Serializable;
import lombok.Data;

@ApiModel(value="com-geekcc-springboot-entity-Commodity")
@Data
@TableName(value = "commodity")
public class Commodity implements Serializable {
    /**
     * id
     */
    @TableId(value = "id", type = IdType.AUTO)
    @ApiModelProperty(value="id")
    private Integer id;

    /**
     * 商品Id
     */
    @Alias("商品Id")
    @TableField(value = "commodityId")
    @ApiModelProperty(value="商品Id")
    private String commodityId;

    /**
     * 商品名
     */
    @Alias("商品名")
    @TableField(value = "commodityName")
    @ApiModelProperty(value="商品名")
    private String commodityName;

    /**
     * 商品种类
     */
    @Alias("商品种类")
    @TableField(value = "commoditySpecies")
    @ApiModelProperty(value="商品种类")
    private String commoditySpecies;

    /**
     * 商品内容
     */
    @Alias("商品内容")
    @TableField(value = "commodityContent")
    @ApiModelProperty(value="商品内容")
    private String commodityContent;

    /**
     * 价值
     */
    @Alias("价值")
    @TableField(value = "price")
    @ApiModelProperty(value="价值")
    private String price;

    /**
     * 数量
     */
    @Alias("数量")
    @TableField(value = "num")
    @ApiModelProperty(value="数量")
    private int num;

    /**
     * 仓库位置
     */
    @Alias("仓库位置")
    @TableField(value = "location")
    @ApiModelProperty(value="仓库位置")
    private String location;


    /**
     * 来源地
     */
    @Alias("来源地")
    @TableField(value = "source")
    @ApiModelProperty(value="来源地")
    private String source;

    /**
     * 提供者
     */
    @Alias("提供者")
    @TableField(value = "provider")
    @ApiModelProperty(value="提供者")
    private String provider;

    private static final long serialVersionUID = 1L;

    public static final String COL_ID = "id";

    public static final String COL_COMMODITYID = "commodityId";

    public static final String COL_COMMODITYNAME = "commodityName";

    public static final String COL_COMMODITYSPECIES = "commoditySpecies";

    public static final String COL_COMMODITYCONTENT = "commodityContent";

    public static final String COL_PRICE = "price";

    public static final String COL_NUM = "num";

    public static final String COL_LOCATION = "location";

    public static final String COL_SOURCE = "source";

    public static final String COL_PROVIDER = "provider";
}